package com.sumainfor.wx.tenant.service.impl.Feign;

import com.sumainfor.wx.tenant.dao.FeignTenanMapper;
import org.omg.CORBA.OBJ_ADAPTER;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 功能描述:
 *
 * @Auther: zhlu
 * @Date: 2019/5/18 10:50
 * @Description:
 */
@Service
public class FeignTenantService {

    @Autowired
    FeignTenanMapper FeignTenanMapper;
    
    /**
     * 功能描述: 
     * 获取所有的租客信息
     * @Author zhlu
     * @Description //TODO
     * @Date 2019/5/18 10:51
     */
    public List<Map<String,Object>>getTenantList(){
        return FeignTenanMapper.getTenantList();
    }


    /**
     * 根据手机号姓名模糊查询租客
     * @author zhoucong
     * @data 2019/8/28
     * @Param
     * @return
     */
    public List<Map<String,Object>> getTenIdPhone(Map<String,Object> params){
        return FeignTenanMapper.getTenIdPhone(params);
    }


    public List<Map<String,Object>> getTenNameandPhone(Map<String,Object> params){
        return FeignTenanMapper.getTenNameandPhone(params);
    }

}
